package com.yugao.fintech.libra.model.vo.role;

import com.yugao.fintech.libra.common.constants.ValidationCons;
import com.yugao.fintech.libra.common.enums.BoolEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


@Getter
@Setter
@Accessors(chain = true)
public class RoleBase {
    @Schema(description = "是否为默认, 0-不是默认, 1-默认")
    private String isDefault = BoolEnum.FALSE.getCode();

    @Schema(description = "角色名称")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String roleName;

    @Schema(description = "角色排序")
    private Integer roleSort;

    @Schema(description = "菜单树选择项是否关联显示（ 0：父子不互相关联显示 1：父子互相关联显示）")
    private boolean menuCheckStrictly;

    @Schema(description = "部门组树选择项是否关联显示（0：父子不互相关联显示 1：父子互相关联显示 ）")
    private boolean deptCheckStrictly;

    @Schema(description = "角色状态（1正常 0停用）")
    private String status;

    @Schema(description = "是否为系统内置角色")
    @NotNull(message = ValidationCons.NOT_EMPTY)
    private Boolean sysBuiltIn;

    @Schema(description = "备注")
    private String remark;
}
